package com.rftennis.service;

import com.rftennis.ao.CustomerAo;
import com.rftennis.dto.CustomerContext;

public interface CustomerService extends CommonService {
	
	/**
	 * 会员注册
	 * @param ao 用户输入的注册信息
	 * @return 账号上下文
	 * @throws Exception
	 */
	CustomerContext register(CustomerAo ao)throws Exception;
	
	/**
	 * 会员登录
	 * @param account 账号
	 * @param password 密码
	 * @return 账号上下文
	 * @throws Exception
	 */
	CustomerContext login(String account,String password)throws Exception;
	
	/**
	 * 修改密码
	 * @param id 账号id
	 * @param oldPassword 旧密码
	 * @param newPasswrod 新密码
	 * @param newPasswordConfirm 新密码确认
	 * @throws Exception
	 */
    void updatePassword(String id,String oldPassword,String newPasswrod,String newPasswordConfirm)throws Exception;

}

